package buda.tabWidget;

import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;

import android.app.TabActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

import android.widget.ArrayAdapter;


public class TwitterListView extends android.app.ListActivity 
{

	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
	  super.onCreate(savedInstanceState);
	  
//	  setListAdapter(new ArrayAdapter<String>(this,
//	          android.R.layout.simple_list_item_1, COUNTRIES));
	  getListView().setTextFilterEnabled(true);
	}
	
//	 private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> 
//	 {
//	     protected Long doInBackground(URL... urls) 
//	     {
//	    	 URL u = new URL("http://www.path.to/a.mp4?video");
//	    	    HttpURLConnection c = (HttpURLConnection) u.openConnection();
//	    	    c.setRequestMethod("GET");
//	    	    c.setDoOutput(true);
//	    	    c.connect();
//	    	    FileOutputStream f = new FileOutputStream(new File(root,"Video.mp4"));
//
//
//	    	    InputStream inputStream = c.getInputStream();
//
//	    	    byte[] buffer = new byte[1024];
//	    	    int currentBytes = 0;
//	    	    while ( (currentBytes = inputStream.read(buffer)) > 0 ) {
//	    	         f.write(buffer,0,currentBytes);
//	    	    }
//	    	    f.close();	     }
//
//	     protected void onProgressUpdate(Integer... progress) {
//	         setProgressPercent(progress[0]);
//	     }
//
//	     protected void onPostExecute(Long result) {
//	         showDialog("Downloaded " + result + " bytes");
//	     }
//	 }
}
